package com.fourforfo.fourmall.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@EnableDiscoveryClient

/**
 * 本module不会使用数据源相关配置，但是因为依赖了fourmall-common需要配置数据源
 * 填入exclude = {DataSourceAutoConfiguration.class}可以排除掉数据源的加载
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class FourmallGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(FourmallGatewayApplication.class, args);
    }

}
